package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.sys.entity.SysParam;
import com.fowo.api.sys.model.SysParamSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysParamMapper extends BaseMapper<SysParam> {
    SysParam selectByName(@Param("name") String name);

    Page<SysParam> searchPage(@Param("page") Page page, @Param("search") SysParamSearch search);

    List<SysParam> search(@Param("search") SysParamSearch search);
}
